// pages/detail/detail.js

var url = getApp().globalData.url;
Page({
  data: {
     load: true,
     detail: {}
  },
   onLoad: function (options) {
      wx.request({
        url: url+ '/v2/movie/subject/' + options.id,
        header: { "content-type": 'json'},
        success: (res) =>{
           this.setData({
             detail: res.data,
             load: false
           });
        }
      })
      
  }

})